SET(SBE_SPEC_FLAGS "-E -P -v -dD")

SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g -O0 -Wall -Wcast-align -Wpointer-arith -Wsign-compare -Wshadow -DDEBUG ${SBE_TOOCHAIN_SPECIFIC_DEFINES}")
SET(CMAKE_C_FLAGS_DEBUG_INIT "-g -O0 -Wall -Wcast-align -Wpointer-arith -Wsign-compare -Wshadow -DDEBUG ${SBE_TOOCHAIN_SPECIFIC_DEFINES}")

SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG -Wall -Wcast-align -Wpointer-arith -Wsign-compare -Wshadow ${SBE_TOOCHAIN_SPECIFIC_DEFINES}")
SET(CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG -Wall -Wcast-align -Wpointer-arith -Wsign-compare -Wshadow ${SBE_TOOCHAIN_SPECIFIC_DEFINES}")

SET(CMAKE_CXX_FLAGS_DEBUGWITHCOVERAGE "-g -O0 -Wall -Wcast-align -Wpointer-arith -Wsign-compare -Wshadow -DDEBUG -fprofile-arcs -ftest-coverage -pg ${SBE_TOOCHAIN_SPECIFIC_DEFINES}")
SET(CMAKE_C_FLAGS_DEBUGWITHCOVERAGE "-g -O0 -Wall -Wcast-align -Wpointer-arith -Wsign-compare -Wshadow -DDEBUG -fprofile-arcs -ftest-coverage -pg ${SBE_TOOCHAIN_SPECIFIC_DEFINES}")
